/**
 * Generate time : 2011-12-19 16:18:43
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ce.domain;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCERepairStandard table comment : 维修标准
 */
public class ZMCERepairStandard extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdEquipmentId = " "; /* 对应设备ID */
	private String fdStandardsForm = " "; /* 标准形式 */
	private String fdCode = " "; /* 维修编号 */
	private String fdRepairType = " "; /* 维修形式 */
	private String fdCycletime = " "; /* 维修周期 */
	private String fdRequirements = " "; /* 维修要求 */
	private String fdNeedtime = " "; /* 维修需用时长 */
	private String fdRepairMethod = " "; /* 维修方法 */
	private String fdRepairPath = " "; /* 维修地点 */
	private String fdReplaceEquiment = " "; /* 拟更换设备 */
	private String fdReplaceAccessories = " "; /* 拟更换配件 */
	private String fdRemarks = " "; /* 备注 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("对应设备ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStandardsForm");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName("标准形式");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("维修编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRepairType");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("维修形式");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCycletime");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("维修周期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRequirements");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("维修要求");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNeedtime");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("维修需用时长");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRepairMethod");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("维修方法");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRepairPath");
		eiColumn.setFieldLength(100);
		eiColumn.setDescName("维修地点");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReplaceEquiment");
		eiColumn.setFieldLength(100);
		eiColumn.setDescName("拟更换设备");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReplaceAccessories");
		eiColumn.setFieldLength(100);
		eiColumn.setDescName("拟更换配件");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemarks");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCERepairStandard() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdEquipmentId - 对应设备ID
	 * 
	 * @return the fdEquipmentId
	 */
	public String getFdEquipmentId() {
		return this.fdEquipmentId;
	}

	/**
	 * set the fdEquipmentId - 对应设备ID
	 */
	public void setFdEquipmentId(String fdEquipmentId) {
		this.fdEquipmentId = fdEquipmentId;
	}

	/**
	 * get the fdStandardsForm - 标准形式
	 * 
	 * @return the fdStandardsForm
	 */
	public String getFdStandardsForm() {
		return this.fdStandardsForm;
	}

	/**
	 * set the fdStandardsForm - 标准形式
	 */
	public void setFdStandardsForm(String fdStandardsForm) {
		this.fdStandardsForm = fdStandardsForm;
	}

	/**
	 * get the fdCode - 维修编号
	 * 
	 * @return the fdCode
	 */
	public String getFdCode() {
		return this.fdCode;
	}

	/**
	 * set the fdCode - 维修编号
	 */
	public void setFdCode(String fdCode) {
		this.fdCode = fdCode;
	}

	/**
	 * get the fdRepairType - 维修形式
	 * 
	 * @return the fdRepairType
	 */
	public String getFdRepairType() {
		return this.fdRepairType;
	}

	/**
	 * set the fdRepairType - 维修形式
	 */
	public void setFdRepairType(String fdRepairType) {
		this.fdRepairType = fdRepairType;
	}

	/**
	 * get the fdCycletime - 维修周期
	 * 
	 * @return the fdCycletime
	 */
	public String getFdCycletime() {
		return this.fdCycletime;
	}

	/**
	 * set the fdCycletime - 维修周期
	 */
	public void setFdCycletime(String fdCycletime) {
		this.fdCycletime = fdCycletime;
	}

	/**
	 * get the fdRequirements - 维修要求
	 * 
	 * @return the fdRequirements
	 */
	public String getFdRequirements() {
		return this.fdRequirements;
	}

	/**
	 * set the fdRequirements - 维修要求
	 */
	public void setFdRequirements(String fdRequirements) {
		this.fdRequirements = fdRequirements;
	}

	/**
	 * get the fdNeedtime - 维修需用时长
	 * 
	 * @return the fdNeedtime
	 */
	public String getFdNeedtime() {
		return this.fdNeedtime;
	}

	/**
	 * set the fdNeedtime - 维修需用时长
	 */
	public void setFdNeedtime(String fdNeedtime) {
		this.fdNeedtime = fdNeedtime;
	}

	/**
	 * get the fdRepairMethod - 维修方法
	 * 
	 * @return the fdRepairMethod
	 */
	public String getFdRepairMethod() {
		return this.fdRepairMethod;
	}

	/**
	 * set the fdRepairMethod - 维修方法
	 */
	public void setFdRepairMethod(String fdRepairMethod) {
		this.fdRepairMethod = fdRepairMethod;
	}

	/**
	 * get the fdRepairPath - 维修地点
	 * 
	 * @return the fdRepairPath
	 */
	public String getFdRepairPath() {
		return this.fdRepairPath;
	}

	/**
	 * set the fdRepairPath - 维修地点
	 */
	public void setFdRepairPath(String fdRepairPath) {
		this.fdRepairPath = fdRepairPath;
	}

	/**
	 * get the fdReplaceEquiment - 拟更换设备
	 * 
	 * @return the fdReplaceEquiment
	 */
	public String getFdReplaceEquiment() {
		return this.fdReplaceEquiment;
	}

	/**
	 * set the fdReplaceEquiment - 拟更换设备
	 */
	public void setFdReplaceEquiment(String fdReplaceEquiment) {
		this.fdReplaceEquiment = fdReplaceEquiment;
	}

	/**
	 * get the fdReplaceAccessories - 拟更换配件
	 * 
	 * @return the fdReplaceAccessories
	 */
	public String getFdReplaceAccessories() {
		return this.fdReplaceAccessories;
	}

	/**
	 * set the fdReplaceAccessories - 拟更换配件
	 */
	public void setFdReplaceAccessories(String fdReplaceAccessories) {
		this.fdReplaceAccessories = fdReplaceAccessories;
	}

	/**
	 * get the fdRemarks - 备注
	 * 
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}

	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdEquipmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentId")), fdEquipmentId));
		setFdStandardsForm(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStandardsForm")), fdStandardsForm));
		setFdCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCode")), fdCode));
		setFdRepairType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRepairType")), fdRepairType));
		setFdCycletime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCycletime")), fdCycletime));
		setFdRequirements(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRequirements")), fdRequirements));
		setFdNeedtime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNeedtime")), fdNeedtime));
		setFdRepairMethod(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRepairMethod")), fdRepairMethod));
		setFdRepairPath(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRepairPath")), fdRepairPath));
		setFdReplaceEquiment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReplaceEquiment")), fdReplaceEquiment));
		setFdReplaceAccessories(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReplaceAccessories")), fdReplaceAccessories));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdEquipmentId", StringUtils.toString(fdEquipmentId, eiMetadata.getMeta("fdEquipmentId")));
		map.put("fdStandardsForm", StringUtils.toString(fdStandardsForm, eiMetadata.getMeta("fdStandardsForm")));
		map.put("fdCode", StringUtils.toString(fdCode, eiMetadata.getMeta("fdCode")));
		map.put("fdRepairType", StringUtils.toString(fdRepairType, eiMetadata.getMeta("fdRepairType")));
		map.put("fdCycletime", StringUtils.toString(fdCycletime, eiMetadata.getMeta("fdCycletime")));
		map.put("fdRequirements", StringUtils.toString(fdRequirements, eiMetadata.getMeta("fdRequirements")));
		map.put("fdNeedtime", StringUtils.toString(fdNeedtime, eiMetadata.getMeta("fdNeedtime")));
		map.put("fdRepairMethod", StringUtils.toString(fdRepairMethod, eiMetadata.getMeta("fdRepairMethod")));
		map.put("fdRepairPath", StringUtils.toString(fdRepairPath, eiMetadata.getMeta("fdRepairPath")));
		map.put("fdReplaceEquiment", StringUtils.toString(fdReplaceEquiment, eiMetadata.getMeta("fdReplaceEquiment")));
		map.put("fdReplaceAccessories", StringUtils.toString(fdReplaceAccessories, eiMetadata.getMeta("fdReplaceAccessories")));
		map.put("fdRemarks", StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));

		return map;

	}
}